<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../css/general.css" rel="stylesheet" type="text/css">
	<link href="../css/main.css" rel="stylesheet" type="text/css">
	<title></title>
</head>
<body>
	<h1>
		<span class="action-span"><a href="channelAdd">添加新通道</a></span> 
		<span class="action-span1">通道列表 </span>
		<div style="clear: both"></div>
	</h1>
	<div class="list-div" id="listDiv">
		<table cellpadding="3" cellspacing="1">
			<tbody><tr>
				<th>编号</th>
				<th>名称</th>
				<th>指令-长号码</th>
				<th>结算价格(元)</th>
				<th>合作状态</th>
			</tr>
		
<c:forEach items="${channels}" var="channel">
<tr>
<td>${channel.id}</td>
<td><a href="channelEdit?id=${channel.id}">${channel.name}</a></td>
<td>${channel.cmd}-${channel.code}</td>
<td>${channel.price}</td>
<td>
<c:if test="${channel.status == 1}">
	<font color="green">合作中</font>
</c:if>
<c:if test="${channel.status == 0}">
	<font color="red">终止合作</font>
</c:if>
</td>
</tr>
</c:forEach>


		</tbody></table>
	</div>

</body>
</html>